<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>查询页面</title>
</head>
<body>
<!--
<tr th:each="entity,start:${users}">
    <td th:text="${entity['id']['name']['password']['age']['perms']}"></td>
</tr>
-->
<!--<div align="center">-->
<table border="1px" align="center">
    <thead>
    <tr>
        <td>id</td>
        <td>姓名</td>
        <td>密码</td>
        <td>年龄</td>
        <td>权限</td>
        <td>数据录入时间</td>

    </tr>

    </thead>
<!--<div th:each="user,iterStat:${users}">-->
    <div th:each="all: ${users}">
        <tr>

            <td th:text="${all.id}"></td>
            <td th:text="${all.name}"></td>
            <td th:text="${all.password}"></td>
            <td th:text="${all.age}"></td>
            <td th:text="${all.perms}"></td>
            <td th:text="${all.inserttime}"></td>
        </tr>
    </div>
    <br/>
    <hr/>


</table>
<!--</div>-->
<!--</div>-->
<div style="text-align: center">


    <tr>
        <td th:if="${pageInfo.hasPreviousPage}">
            <a th:href="'/queryAllUser?pageNum=1'">首页</a>
        </td>

        <td  th:if="${pageInfo.hasPreviousPage}">
            <a th:href="'/queryAllUser?pageNum='+${pageInfo.prePage}">
                <i class="ace-icon fa fa-angle-double-left"></i>
            </a>
        </td>
        <!--遍历条数-->
        <td th:each="nav:${pageInfo.navigatepageNums}">
            <a th:href="'/queryAllUser?pageNum='+${nav}" th:text="${nav}" th:if="${nav != pageInfo.pageNum}"></a>
            <span style="font-weight: bold;" th:if="${nav == pageInfo.pageNum}" th:text="${nav}" ></span>
        </td>

        <td  th:if="${pageInfo.hasPreviousPage}">
            <a th:href="'/queryAllUser?pageNum='+${pageInfo.prePage}">
                上一页
            </a>
        </td>

        <td  th:if="${pageInfo.hasNextPage}">
            <a th:href="'/queryAllUser?pageNum='+${pageInfo.nextPage}">
                下一页
            </a>
        </td>

        <td>
            <a th:href="'/queryAllUser?pageNum='+${pageInfo.pages}">尾页</a>
        </td>
    </tr>
    <div>
        当前第 [[${pageInfo.pageNum}]]页,共 [[${pageInfo.pages}]] 页.一共 [[${pageInfo.total}]] 条记录
    </div>
</div>

</body>
</html>